import axios from 'axios'

axios.defaults.baseURL = ''
axios.defaults.withCredentials = true
axios.defaults.headers['Content-Type'] = 'application/x-www-form-urlencoded'

function login() {
  return axios.post('/sign-in', {
    language: 'zh-CHS',
    seType: true,
    // Tenant: 10000,
    Tenant: 925759,
    Authenstrategy: 'UserPassword',
    username: 'll0',
    // username: 'lianlin',  //本地联调测试
    // username: 'ygq',
    // password: 'g4UkhDSc0OjgpLmtKHmkV0yGaoIxfG6Sxk1P3KMrP7vxOWB8wOYYtAt1VjVUW9LdxHk/Atn1fj57sm5BcBXUneFJKirrrM4dyeApJ0cuyh078fCRf8UWFGw4Lk5RcawspiFalk35VwRkSwwS5IlVdGxKrTpYyIQBzKR0PhE+Lq0=',//guoqi
    // password:'CnaZw/lKpOuD1ti30VGwqw9jedagJ96VeqkyfXNqeo5ALKIMYRa5jUHzM0asZq2scTYwAA+P9TYhMQg7YwQnTUtgrdj1pCgJrYJEY4fn64R63ezrVBjxI+qf69aEbxoAB1QNw6T7113w+5AbNHPBWbajdtgNzfdGB2xQJXTd/wc=',//chao
    // username: 'lianlin',  //本地联调测试
    // username: 'ygq',
    // password: 'g4UkhDSc0OjgpLmtKHmkV0yGaoIxfG6Sxk1P3KMrP7vxOWB8wOYYtAt1VjVUW9LdxHk/Atn1fj57sm5BcBXUneFJKirrrM4dyeApJ0cuyh078fCRf8UWFGw4Lk5RcawspiFalk35VwRkSwwS5IlVdGxKrTpYyIQBzKR0PhE+Lq0=',//guoqi
    // password: 'CnaZw/lKpOuD1ti30VGwqw9jedagJ96VeqkyfXNqeo5ALKIMYRa5jUHzM0asZq2scTYwAA+P9TYhMQg7YwQnTUtgrdj1pCgJrYJEY4fn64R63ezrVBjxI+qf69aEbxoAB1QNw6T7113w+5AbNHPBWbajdtgNzfdGB2xQJXTd/wc=',//chao
    // username: 'lyc',
    password: 'PO5GEkSaHNHMrHj3gdS2F8MhYq5o/x+WYKRowlQatVhI8wqy6PHo69MZb7VeHLuJHDS65NggODVldFLD9PjJiu7Y2tbXBm9Z3QaaRWN0OQMuldguTg0ptjzZLd4jkBZZWGvAc7o+URCSPe6+MjKzaLMRTskimWVf1I1Tg0hh8lc=',//110--92
    // password:'hJF9pNYtimVpozQ72cmx5uGftg1QhxDCevpHlDjj7D+tCd6jlPDD+2Ux88aFW3cyCIL7kK4uLUmkblwOVrfc4qsijSrjLfzI87uR2o+qGDelTRcgO3w7hZEo8O6JKNiDbR0Uj/r61z2+oP5LTfOQ9BoUJocmX2/RDcLvAPzfkMo=',//lanlin测试
    phoneNumber: '',
    smsCode: '',
    vc: '',
  })
}

function a() {
  return axios.post('/dmp-datafactory/api/dataset/getData', {
    datasetId: "02915d3c-e985-3e92-be1c-0341a3f15538",
    dataTime_start: '2024-08-01',
    dataTime_end: '2024-08-14',
  })
}

export { login, a }